From: robertlipe Date: Wed, 8 Jul 2015 18:11:57 +0000 (+0000) Subject: Kludge ioapi.c for Cygwin. X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2~10^2~24 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=27bd8fac374e254a3efb89870088e111fd76c4e5;p=gpsbabel.git Kludge ioapi.c for Cygwin. --- diff --git a/gpsbabel/zlib/contrib/minizip/ioapi.c b/gpsbabel/zlib/contrib/minizip/ioapi.c index 7f5c191b2..efb357918 100644 --- a/gpsbabel/zlib/contrib/minizip/ioapi.c +++ b/gpsbabel/zlib/contrib/minizip/ioapi.c @@ -14,7 +14,7 @@ #define _CRT_SECURE_NO_WARNINGS #endif -#if defined(__APPLE__) || defined(IOAPI_NO_64) +#if defined(__APPLE__) || defined(IOAPI_NO_64) || defined(__CYGWIN__) // In darwin and perhaps other BSD variants off_t is a 64 bit value, hence no need for specific 64 bit functions #define FOPEN_FUNC(filename, mode) fopen(filename, mode) #define FTELLO_FUNC(stream) ftello(stream)